home *** CD-ROM | disk | FTP | other *** search
- 10 GOSUB 430
- 20 'Program copyright (c) 1983 by Jim Baen
- 30 '
- 40 '
- 50 ' Program copyright (c) 1984 by JAMES P MORGAN
- 60 ' 1749 AMERICANA BLVD 23-G
- 70 ' ORLANDO FLA 32809
- 80 '
- 90 ' MODIFIED TO SUPPORT 'COMPAQ' BASIC V2.0, SUCH THAT A PROGRAM
- 100 ' SAVE AS ',P' CAN BE LOADED AND UNPROTECTED.
- 110 '
- 120 'All persons are hereby granted all rights to this program
- 130 'on a NON-EXCLUSIVE basis, including the rights of copying,
- 140 're-sale, and incorporation in other programs that are then
- 150 'offered commercially. The sole purpose of this copyright
- 160 'declaration is to prevent any other individual from copy-
- 170 'righting this program and so being able to restrict its use.
- 180 CLS
- 190 LOCATE 8,20
- 200 INPUT "filename";NME$
- 210 LOCATE 11,20
- 220 PRINT "Press <Enter> three times and **";NME$;"** will
- 230 LOCATE 12,20: PRINT "be loaded in memory in listable form -- don't
- 240 LOCATE 13,20: PRINT "forget: you must SAVE **";NME$;"** to disk if you
- 250 LOCATE 14,20: PRINT "want to have it available in unprotected format.
- 260 LOCATE 15,20: PRINT "Alternatively you can keep it PROTECTED, and use
- 270 LOCATE 16,20: PRINT "this utility when you want to list or modify it.
- 280 LOCATE 19,10
- 290 'PRINT "Bload"+CHR$(34)+"un.p"+CHR$(34)+",1124" 'IBM PC DOS BASIC
- 300 PRINT "Bload"+CHR$(34)+"un.p"+CHR$(34)+",&H5CC" 'COMPAQ BASIC V2.0
- 310 '
- 320 ' COMPAQ BASIC V2.0 (GWBASIC?) APPEARS TO SAVE THE FIRST BYTE OF
- 330 'THE STORED DISK BASIC FILE AS A SEPARATE SINGLE BYTE AT
- 340 'DATA SEGMENT+&H5CC (IF PROTECTED WILL BE &HFE AT THIS LOCATION).
- 350 'THE 'BLOAD' CHANGES THIS PROTECTION FLAG TO AN UNPROTECED STATE.
- 360 ' IF U HAVE ANY PROBLEMS WITH THIS PROCEDURE PLEASE DROP A LINE
- 370 'TO JAMES MORGAN AT THE ABOVE ADDRESS.
- 380 '
- 390 LOCATE 17,10: PRINT "Def Seg"
- 400 LOCATE 16
- 410 LOAD NME$
- 420 END
- 430 CLOSE
- 440 OPEN "un.p" FOR OUTPUT AS #1
- 450 CLOSE
- 460 KILL "un.p"
- 470 OPEN "R",#1,"UN.P",128
- 480 FIELD 1, 128 AS A$
- 490 LSET A$=CHR$(253)+CHR$(11)+CHR$(5)+CHR$(100)+CHR$(4)+CHR$(1)+CHR$(0)+CHR$(0)
- 500 PUT 1,1
- 510 CLOSE
- 520 RETURN
- 8 AS A$
- 490 LSET A$=CH